var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  if(req.session.isLogin === "ok" && req.session.power < 1){
    res.render("news", {
      index:6,
      // activeIndex:4,
      power:req.session.power
    })
  }else{
    res.send("404 ： 未找到你要搜索的页面");
  }
  // res.render('news', {
  //   index:6,
  //   power:req.session.power
  // });
});

module.exports = router;
